<?php
require_once ('AppModel.php');



/**
 * @author Windows 8 Pro User
 * @version 1.0
 * @created 02-dez-2013 23:26:30
 */
class Fidelity extends AppModel {

	/**
	 * Set the model name
	 */
	public $name = 'Fidelity';
	/**
	 * Set the model table
	 */
	public $useTable = 'establishments_users';
	/**
	 * Set the model relationship
	 */
	public $belongsTo = array('User', 'Establishment');
	/**
	 * Set the model validation
	 */
	public $validate = array(
		'user_id' => array(
			'required' => array(
				'rule' => array('notEmpty'),
				'message' => 'Id do Usuário requerido'
			)
		),
		'establishment_id' => array(
			'required' => array(
				'rule' => array('notEmpty'),
				'message' => 'Id do Estabelecimento requerido'
			)
		)
	);

}
?>